
import SerializeAble, { CSMemberType, Serialize, SerializeClass } from "../../../core/serialize";
import { UniqueObject, UniqueObjectConfig } from "../../../core/unique_class";
import { Character } from "../../eggy/game/character";

@SerializeClass("FightConfig")
export class FightConfig extends UniqueObjectConfig {
  @Serialize()
  time = 0;
  @Serialize()
  bombCount = 1;
};
@SerializeClass("Fight")
export class Fight extends UniqueObject<FightConfig> {
  @Serialize(Character, CSMemberType.Array)
  characters: Character[] = [];
};

@SerializeClass("FightResult")
export class FightResult extends SerializeAble {
  @Serialize(Character, CSMemberType.Array)
  characters: Character[] = [];
  winnerInd = -1;
};